GUI Help > Create > createFrame

createFrame
int handle=createFrame(int x, int y, int width, int height, str caption, handle parent)

Description:
Creates a frame. Frames are similar to panels except that they have a thin border around them with a caption at the top. They are used to visually group gadgets on screen.

Return Value:
Handle to the new gadget.

Parameters:
x X position of new gadget
y Y position of new gadget
width Width of new gadget in pixels
height Height of new gadget in pixels
caption Text which appears at the top of the frame.
parent Handle to the parent of the new gadget, or 0 for the main window
Remarks:
Frames do not generate events as the user cannot interact with them.

See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)